home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’97
/
Klingon BG App
/
Source
/
timeUtil.c
< prev
next >
Wrap
Text File
|
1997-06-28
|
687b
|
37 lines
// Source code for Klingon Clock. Copyright (C) 1996-1997
// Charles H. Hemstreet IV
//
// Started at MacHack 1996
// Completed at MacHack 1997
//
// Best thanks to:
// My wife Regie, son Chad and baby
// Other thanks to Elden Wood and Bob Clark
//
// This code is distributed "as-is" and implies no warranty or guarantee.
#ifndef __TIMEUTIL__
#include "timeUtil.h"
#endif
#include <OSUtils.h>
void getTime(short cur_time[])
{
DateTimeRec myDateRec;
GetTime(&myDateRec);
cur_time[0] = myDateRec.hour;
cur_time[1] = myDateRec.minute;
cur_time[2] = myDateRec.second;
cur_time[3] = myDateRec.year;
cur_time[4] = myDateRec.month;
cur_time[5] = myDateRec.dayOfWeek;
}